<%= form_for part_configuration, :url => { :controller => "admin", :action => "update_request_part_configuration" } do |f| %>
	<%= f.hidden_field :id %>
	<%= f.autocomplete_field :part_name, admin_autocomplete_part_name_path %>
	<%= f.select :parts_group_id, options_from_collection_for_select(PartsGroup.all, 'id', 'name', :selected => part_configuration.parts_group_id), :include_blank => '< Група >'%>
	<%= f.select :used_type_id, options_from_collection_for_select(UsedType.all, 'id', 'name', :selected => part_configuration.used_type_id), :include_blank => '< Използваност на частите >'  %>
	<%= f.select :original_type_id, options_from_collection_for_select(OriginalType.all, 'id', 'name', :selected => part_configuration.original_type_id), :include_blank => '< Оригиналност на частите >'  %>
	<%= f.submit "Update"%>
<% end %>
<%= button_to 'Delete', admin_delete_part_configuration_path(:id => part_configuration.id) %>
